#include "BaseTrigger.h"

BaseTrigger::BaseTrigger(const Vector2df p, const Vector2df s) : BaseUnit()
{
    setPosition(p);
    m_size = s;
	m_screenPosition = p;
	m_sprite = NULL;
	#ifdef _DEBUG
        rect.setDimensions(s);
        rect.setColour(RED);
        rect.setThickness(1);
	#endif
}

BaseTrigger::~BaseTrigger()
{

}

//----------------------
// public declarations
//----------------------

void BaseTrigger::render()
{
#ifdef _DEBUG
	rect.setPosition(m_screenPosition);
	rect.render();
#endif
}

void BaseTrigger::update()
{

}

void BaseTrigger::updateScreenPosition(const Vector2df mapOffset)
{
    m_screenPosition = m_position - mapOffset;
}

Vector2df BaseTrigger::getScreenPosition() const
{
    return m_screenPosition;
}

void BaseTrigger::hitMap(MapData* const data, const CollisionObject* const obj)
{

}
